<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateRegistryAuditHistoriesTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::create('registry_audit_histories', function (Blueprint $table) {
            $table->id();
            $table->timestamps();
            $table->bigInteger('registry_id')->index('登记ID');
            $table->string('type', 16)->comment('记录类型: 登记/审核通过/审核拒绝');
            $table->string('title', 32)->comment('标题');
            $table->string('remark', 512)->default('')->comment('备注信息');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('registry_audit_histories');
    }
}
